<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String menu = "4";
/* 현재 날짜 가지고 옴 */
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy.MM.dd", java.util.Locale.KOREA);
String date = formatter.format(new java.util.Date());
String id = ((String)session.getAttribute("id")) == null ? "홍길동" : ((String)session.getAttribute("id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
<%@ include file="/inc/meta.jsp" %>
<script type="text/javascript">
<!--
$(document).ready(function(){
	$('#goSave').click(function() {
		if(document.getElementById("title").value == "" ){
			alert("제목을 등록 하십시요");
			$('#title').focus();
			return;
		}
		if(document.getElementById("content").value == "" ){
			alert("내용을 등록 하십시요");
			$('#content').focus();
			return;
		}
		document.getElementById("frm").submit();
	});
	
});
//-->
</script>
</head>
<body>
<!-- header -->
<%@ include file="/inc/header.jsp" %>
<!-- header// -->
<!-- container -->
    <div id="container">
    <form action="qna_dbx.jsp" name="frm" id="frm" method="post" enctype="multipart/form-data"> 
    <input type="hidden" name="board_kind" value="qna" />
    <input type="hidden" name="reg_id" value="<%=id %>" />
    <input type="hidden" name="gubun" value="I" />
        <h2><img src="/img/sub0402_h2.gif" alt="회원게시판" /></h2>
        <div class="sub-con">
        <ul class="tab04">
         <li class="one"><a href="/support/contact_list.jsp">Wedding Story for you</a></li>
        <li class="two"><a href="/support/qna_list.jsp" class="hover">Key Factors</a></li>
        <li class="three"><a href="/support/faq_list.jsp">Key Factors</a></li>
        </ul>
        <h3><img src="/img/tit0402.gif" alt="Q&A l 본 게시판은 웨딩스토리 회원만을 위한 공간이며 로그인 후 이용하실 수 있습니다. " /></h3>
				<div class="view01">
                <table class="contactus" summary="제목,등록일,첨부파일,조회수를 제공한 표">
					<caption>뉴스</caption>
					<colgroup>
						<col width="15%" />
						<col width="35%" />
						<col width="15%" />
						<col width="35%" />
					</colgroup>
					<tr>
						<th scope="row" >제목</th>
						<td colspan="3"><input type="text" name="title" id="title" class="w95" id="contactus04" title="제목 입력" /></td>
					</tr>
					<tr>
						<th scope="row" >작성자</th>
						<td><%=id %></td>
						<th scope="row" >작성일</th>
						<td><%=date %></td>
					</tr>
					<tr>
						<th scope="row" >첨부파일</th>
						<td colspan="3"><input type="file" class="w83" name="file_name" id="file_name"  title="" /></td>
					</tr>
					<tr>
						<th scope="row" >질문</th>
					  <td colspan="3"><textarea name="content"  cols="" rows="10">&nbsp;</textarea></td>
					</tr>
				</table>
                <div class="btn-right pdb100">
                <img src="/img/btn_write.gif" alt="완료" id="goSave" style="cursor: pointer;" />
                <a href="/support/qna_list.jsp"><img src="/img/btn_cancle.gif" alt="취소" /></a>
                </div>
                </div>
		</div>
        <div class="advice"><img src="/img/img01.gif" alt="문의및상담 1666-0135" /></div>
        </form>
        </div>
<!-- footer -->
<%@ include file="/inc/footer.jsp" %>
<!-- fooer// -->
</div>
<!-- container// -->
</div>
</div>
</div>
</body>
</html>